<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>邀约管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/hhx/hhxInvite/">邀约列表</a></li>
		<shiro:hasPermission name="hhx:hhxInvite:edit"><li><a href="${ctx}/hhx/hhxInvite/form">邀约添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="hhxInvite" action="${ctx}/hhx/hhxInvite/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>邀请人id：</label>
				<form:input path="inviteid" htmlEscape="false" maxlength="32" class="input-medium"/>
			</li>
			<li><label>受邀人id：</label>
				<form:input path="invitedid" htmlEscape="false" maxlength="32" class="input-medium"/>
			</li>
			<li><label>邀约状态：</label>
				<form:select path="status" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('hhx_invite_status')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>邀请时间：</label>
				<form:input path="intime" htmlEscape="false" maxlength="12" class="input-medium"/>
			</li>
			<li><label>处理时间：</label>
				<form:input path="dealtime" htmlEscape="false" maxlength="12" class="input-medium"/>
			</li>
			<li><label>支付金额：</label>
				<form:input path="payamt" htmlEscape="false" maxlength="10" class="input-medium"/>
			</li>
			<li><label>评论：</label>
				<form:input path="comment" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>邀请人id</th>
				<th>受邀人id</th>
				<th>邀约状态0-未接受1-已接受2-已拒绝3-已取消</th>
				<th>邀请时间</th>
				<th>处理时间</th>
				<th>支付金额</th>
				<shiro:hasPermission name="hhx:hhxInvite:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="hhxInvite">
			<tr>
				<td><a href="${ctx}/hhx/hhxInvite/form?id=${hhxInvite.id}">
					${hhxInvite.inviteid}
				</a></td>
				<td>
					${hhxInvite.invitedid}
				</td>
				<td>
					${fns:getDictLabel(hhxInvite.status, 'hhx_invite_status', '')}
				</td>
				<td>
					${hhxInvite.intime}
				</td>
				<td>
					${hhxInvite.dealtime}
				</td>
				<td>
					${hhxInvite.payamt}
				</td>
				<shiro:hasPermission name="hhx:hhxInvite:edit"><td>
    				<a href="${ctx}/hhx/hhxInvite/form?id=${hhxInvite.id}">修改</a>
					<a href="${ctx}/hhx/hhxInvite/delete?id=${hhxInvite.id}" onclick="return confirmx('确认要删除该邀约吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>